<!DOCTYPE html>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html class="reftest-wait">
<iframe style="width: 400px; height: 400px; border: 0" src="multiple-x-percentages-3-iframe.svg"></iframe>
<script>
var iframe = document.querySelector("iframe");

function doTest() {
  window.removeEventListener("MozReftestInvalidate", doTest);

  iframe.style.width = "200px";
  iframe.style.height = "200px";

  var text = iframe.contentDocument.querySelectorAll("text");
  text[0].firstChild.nodeValue += "!";
  text[1].firstChild.nodeValue += "!";

  document.documentElement.removeAttribute("class");
}

window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
